home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / labeldisk / RCS / labeldisk.man,v < prev   
Encoding:
Text File  |  1991-09-27  |  7.1 KB  |  279 lines

  1. head     1.7;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.7
  10. date     91.09.26.21.08.59;  author voelker;  state Exp;
  11. branches ;
  12. next     1.6;
  13.  
  14. 1.6
  15. date     91.09.14.13.55.17;  author voelker;  state Exp;
  16. branches ;
  17. next     1.5;
  18.  
  19. 1.5
  20. date     91.09.14.13.42.30;  author voelker;  state Exp;
  21. branches ;
  22. next     1.4;
  23.  
  24. 1.4
  25. date     90.02.16.16.10.57;  author shirriff;  state Exp;
  26. branches ;
  27. next     1.3;
  28.  
  29. 1.3
  30. date     89.08.01.23.28.03;  author jhh;  state Exp;
  31. branches ;
  32. next     1.2;
  33.  
  34. 1.2
  35. date     88.12.30.09.37.09;  author ouster;  state Exp;
  36. branches ;
  37. next     1.1;
  38.  
  39. 1.1
  40. date     88.12.21.15.21.36;  author ouster;  state Exp;
  41. branches ;
  42. next     ;
  43.  
  44.  
  45. desc
  46. @@
  47.  
  48.  
  49. 1.7
  50. log
  51. @extended to check for lfs too...
  52.  
  53. @
  54. text
  55. @' $Header: /sprite/src/cmds/labeldisk/RCS/labeldisk.man,v 1.6 91/09/14 13:55:17 voelker Exp Locker: voelker $ SPRITE (Berkeley)
  56. .so \*(]ltmac.sprite
  57. .HS LABELDISK cmds
  58. .BS
  59. .SH NAME
  60. labeldisk \- read and write a disk's label
  61. .SH SYNOPSIS
  62. .IP \fBlabeldisk 10
  63. [\fB\-from fromDevice\fR]
  64. [\fB\-w\fR]
  65. [\fB\-q\fR]
  66. [\fB\-sun\fR]
  67. [\fB\-dec\fR]
  68. [\fB\-new\fR]
  69. \fIdevice\fP
  70. .SH OPTIONS
  71. .IP \fB\-from\ fromDevice\fP
  72. Read the label from this device.
  73. .IP \fB\-w\fP
  74. Write a new label.
  75. .IP \fB\-q\fP
  76. Write a new label quickly, without prompting for partition information.
  77. .IP \fB\-sun\fP
  78. Write out a Sun label.  The default is to write whatever type of label was
  79. read.
  80. .IP \fB\-dec\fP
  81. Write out a Dec label.
  82. .IP \fB\-new\fP
  83. Ignore any old label.
  84. .IP \fIdevice\fP
  85. The device file with the disk label.  Without \fB-from\fP it is the
  86. device that the label is read from and written to, otherwise it is
  87. the device that is written to.
  88. .BE
  89.  
  90. .SH DESCRIPTION
  91. .LP
  92. This reads the disk label and verifies its checksum.  If the
  93. \fB-from fromDevice\fP option is present then the disk label is
  94. read from the \fBfromDevice\fP, and the \fBdevice\fP argument
  95. becomes the device to which the label is written to.
  96. .LP
  97. If the \fB\-w\fP
  98. option is present labeldisk interactively prompts for partition information.
  99. After this the user is presented with the new label and given
  100. the opportunity to commit the change or abort it.  The user is also
  101. given the chance to write the label to all of the valid partitions
  102. found on the device.  ``valid'' means that the partition has a positive
  103. number of cylinders associated with it, and that a file system
  104. exists on the partition.  If a partition on the
  105. disk is not ``valid'', then it is skipped.  An attempt is made to
  106. write the label to the raw disk in the improbable case that no
  107. valid partition starts on cylinder 0.  If labeldisk was not
  108. able to write the label to the raw disk or to a partition that
  109. begins at cylinder 0, then a warning is issued to that effect.
  110. .LP
  111. The \fB-q\fP option turns off the prompting for partition information
  112. only.  This is useful for copying a label from one partition
  113. on one device to other partitions on the same or different device
  114. if the user knows that the label on the from device has the
  115. correct information.  Overrides the \fB-w\fP option.
  116. .LP
  117. The \fB-dec\fP option converts the label being written to a dec label.
  118. .LP
  119. The \fB-sun\fP option converts the label being written to a dec label.
  120. .LP
  121. The \fB-new\fP option ignores any label read, and creates a new one
  122. instead.  If either the \fB-dec\fP or the \fB-sun\fP option is specified
  123. then the new label created is of the specified type.
  124. .LP
  125. Each disk is divided into 8 partitions, named ``ai'' thru ``gi''.
  126. Each partition is specified with a starting cylinder number and the
  127. number of cylinders it contains.  Unused partitions
  128. are indicated with a zero size.  Partitions can overlap, but
  129. overlapping partitions should never be used simultaneously!
  130. Traditionally partition ``ai'' is a small partition suitable for the root
  131. or a small /tmp.  Partition ``bi'' is a slightly larger system
  132. suitable for a single machine's swap directory.
  133. Partition ``ci'' is a single large partition that specifies the whole disk.
  134. Partitions ``di'' and ``ei'' are often used as large partitions
  135. beyond ``ai'' and ``bi''.
  136. Partition ``gi'' is usually set up as all the space after ``ai'' and ``bi''.
  137. Partitions ``fi'' and ``hi'' usually aren't used, but they can be.
  138. .LP
  139. Partitions are useful to quarantine different sets of users from
  140. one another, although they are a pain to change once a filesystem
  141. has been created on them.  Changing them requires recreating any affected
  142. filesystems. 
  143. .SH KEYWORDS
  144. disk, label
  145. @
  146.  
  147.  
  148. 1.6
  149. log
  150. @fixed a typo
  151. @
  152. text
  153. @d1 1
  154. a1 1
  155. ' $Header: /sprite/src/cmds/labeldisk/RCS/labeldisk.man,v 1.5 91/09/14 13:42:30 voelker Exp Locker: voelker $ SPRITE (Berkeley)
  156. d49 2
  157. a50 2
  158. number of cylinders associated with it, and that a OFS domain header
  159. can be successfully read from the partition.  If a partition on the
  160. @
  161.  
  162.  
  163. 1.5
  164. log
  165. @cleaned up the man page to describe the current options available
  166.  
  167. @
  168. text
  169. @d1 1
  170. a1 1
  171. ' $Header: /sprite/src/cmds/labeldisk/RCS/labeldisk.man,v 1.4 90/02/16 16:10:57 shirriff Exp Locker: voelker $ SPRITE (Berkeley)
  172. d68 1
  173. a68 1
  174. instead.  If either the \fB-dec\fP or the \fB-sun\P option is specified
  175. @
  176.  
  177.  
  178. 1.4
  179. log
  180. @Documented dec label function.
  181. @
  182. text
  183. @d1 1
  184. a1 1
  185. ' $Header: /sprite/src/cmds/labeldisk/RCS/labeldisk.man,v 1.3 89/08/01 23:28:03 jhh Exp Locker: shirriff $ SPRITE (Berkeley)
  186. d8 8
  187. a15 1
  188. \fBlabeldisk [\fB\-w\fR] \fIdevice\fP
  189. d17 2
  190. d21 2
  191. a25 2
  192. .IP \fB\-sprite\fP
  193. Write out a Sprite label.
  194. d28 6
  195. a33 2
  196. .IP \fIdevice\fP 14
  197. The device file with the disk label.  Generally the ``a'' partition.
  198. d38 7
  199. a44 2
  200. This reads the disk label and verifies its checksum.  If the \fB\-w\fP
  201. option is present this interactively prompts for partition information.
  202. d46 24
  203. a69 1
  204. the opportunity to commit the change or abort it.  The disk label 
  205. @
  206.  
  207.  
  208. 1.3
  209. log
  210. @Now does Sprite labels
  211. @
  212. text
  213. @d1 1
  214. a1 1
  215. ' $Header: /a/newcmds/labeldisk/RCS/labeldisk.man,v 1.2 88/12/30 09:37:09 ouster Exp Locker: jhh $ SPRITE (Berkeley)
  216. d8 1
  217. a8 1
  218. \fBlabeldisk -d \fIdevice\fP [\fB\-w\fR]
  219. a9 2
  220. .IP \fB\-d \fIdevice\fP 14
  221. The device file with the disk label.  Generally the ``a'' partition.
  222. d16 5
  223. a20 2
  224. Write out a Sprite label. The default is to write whatever type of label was
  225. read.
  226. a47 2
  227. .SH BUGS
  228. Disk has to have a label already.
  229. @
  230.  
  231.  
  232. 1.2
  233. log
  234. @More format upgrades.
  235. @
  236. text
  237. @d1 1
  238. a1 1
  239. ' $Header: /a/newcmds/labeldisk/RCS/labeldisk.man,v 1.1 88/12/21 15:21:36 ouster Exp Locker: ouster $ SPRITE (Berkeley)
  240. d14 6
  241. d47 2
  242. @
  243.  
  244.  
  245. 1.1
  246. log
  247. @Initial revision
  248. @
  249. text
  250. @d1 1
  251. a1 1
  252. ' $Header: /a/newcmds/labeldisk/RCS/labeldisk.man,v 1.1 88/12/21 15:21:01 ouster Exp $ SPRITE (Berkeley)
  253. d8 1
  254. a8 1
  255. \fBlabeldisk -d \fIdevice\fP [\fB-w\fR]
  256. d10 3
  257. a12 3
  258. .IP \fB-d \fIdevice\fP 14
  259. The device file with the disk label.  Generally the "a" partition.
  260. .IP \fB-w\fP
  261. d18 1
  262. a18 1
  263. This reads the disk label and verifies its checksum.  If the \fB-w\fP
  264. d23 1
  265. a23 1
  266. Each disk is divided into 8 partitions, named 'a' thru 'g'.
  267. d28 2
  268. a29 2
  269. Traditionally partition 'a' is a small partition suitable for the root
  270. or a small /tmp.  Partition 'b' is a slightly larger system
  271. d31 5
  272. a35 5
  273. Partition 'c' is a single large partition that specifies the whole disk.
  274. Partitions 'd' and 'e' are often used as large partitions
  275. beyond 'a' and 'b'.
  276. Partition 'g' is usually set up as all the space after 'a' and 'b'.
  277. Partitions 'f' and 'h' usually aren't used, but they can be.
  278. @
  279.